#include "del_and_mod.h"

void deleteNode(list_head head, day_data data) {
    linked_list *p = head->next;
    linked_list *pre = head;
    
    while (p!=NULL) {
        if (p->data.number == data.number) {
            pre->next = p->next;
            free(p);
//            printf("delete  this %dtask successfully\n", delete_number); // WHAT, DID YOU MEAN DATA
//            printf("delete  this %dtask successfully\n", delete_number); // DANGEROUS
            return;
        }
        pre = pre->next;
        p = pre->next;
    }
    printf("Sorry, we don't find this DDL.\n" );
    return ;
}
